package com.share.servlet;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

/*
    GenericServlet适配器设计模式：抽象类实现接口
 */
public class Servlet2 extends GenericServlet {

    public Servlet2() {
        System.out.println("servlet2---构造方法");
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {

        System.out.println("servlet2---service方法");
    }
}
